import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'main',
    redirect: '/mes?id=0',
    component: () => import("@/views/main/index.vue"),
    children: [
      {
        path: '/mes',
        component: () => import('@/views/mes/index.vue'),
      },
    ],
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
